// pages/goods/gengduo/gengduo.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
pg:1
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
	  //  参数名：action=afterByCar, goodid=产品ID, carid=选中车辆ID，pg=当前页码
	  wx.getStorage({
		  key:'car',
		  success:(e)=>{
			  console.log(e)
			  this.setData({
				  car:e.data[options.xz]
			  })
		  }
	  })
	wx.request({
		url:getApp().globalData.http+'action=afterByCar&goodid='+options.goodid+'&carid='+options.carid+'&pg='+this.data.pg,
		success: (e) => {
			console.log(e)
			this.setData({
				data:e.data.data
			})
		}
	})
  },
})